﻿using Avin.Infrastructure.DbContext;
using Avin.Infrastructure.Linq;

namespace Tester
{
    public class Repository<T> : QueryProvider
    {
        public Repository()
        {
            SetDbContext(new DbContextBase());
        }

        private Queryable<T> _queryable = null;

        public Queryable<T> Queryable
        {
            get
            {
                _queryable ??= new Queryable<T>(this);
                return _queryable;
            }
        }
    }
}
